class Result:
    class BBox:
        def __init__(self, ltx: float, lty: float, rbx: float, rby: float):
            self.ltx = ltx
            self.lty = lty
            self.rbx = rbx
            self.rby = rby

        def __repr__(self):
            return f"BBox(x={self.ltx}, y={self.lty}, width={self.rbx}, height={self.rby})"

    def __init__(self, bbox: BBox, confidence: float, label: int):
        self.bbox = bbox
        self.confidence = confidence
        self.label = label

    def __repr__(self):
        return (f"Result(bbox={self.bbox}, confidence={self.confidence}, "
                f"label='{self.label}')")
